<?php

namespace app\Http\Controllers\User;

use Illuminate\Support\Facades\DB;
/**
 * Created by PhpStorm.
 * User: tianleilei
 * Date: 2017/7/3
 * Time: 15:12
 */
class IndexController
{
	public function test(){

		$data = DB::table('users')->get();
		$data = DB::table('admin_user')->where('id','=','100')->select('id')->get();
		$data = DB::table('admin_user')->inRandomOrder()->first();
		DB::table('users')->where('votes', '>', 100)->lockForUpdate()->get();
		dd($data);

	}

}